<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>新的博客</title>
    <link href="https://cdn.bootcss.com/twitter-bootstrap/4.2.1/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div>

    <form class="form-horizontal" role="form" th:action="@{/saveBlog}" method="post">
        <div class="form-group">
            <label for="title" class="col-sm-2 control-label">话题</label>
            <div class="col-sm-10">
                <input type="text" name="title" class="form-control" id="title" placeholder="请输入话题">
            </div>
        </div>
        <div class="form-group">
            <label for="content">分享内容...</label>
            <textarea id="content" name="content" class="form-control" rows="12"></textarea>
        </div>

        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-primary">发布</button>
            </div>
        </div>
    </form>

</div>
</body>
</html>